
window.rootPath = (function (src) {
	src = document.currentScript
		? document.currentScript.src
		: document.scripts[document.scripts.length - 1].src;
	return src.substring(0, src.lastIndexOf("/") + 1);
})();
layui.config({
	base: rootPath + "module/",
	version: "0.1.0",
	api:"api"
}).extend({
    //****************************APP级别************************//
    app: "app/editor/app", 	// app模块
    header_right: "app/editor/header_right", 	// 头部区域右边
    header: "app/editor/header", 	// 头部区域
    content: "app/editor/content", 	// 内容区
    footer: "app/editor/footer", 	// 内容区


    //****************************组件级别  设计器************************//
    editor: "editor/editor", 	// 框架布局组件
    resource_content: "editor/resource_content", 	// 资源内容模块
    resource_tree: "editor/resource_tree", 	// 资源功能模块
    resource_toolbar: "editor/resource_toolbar", 	// 资源工具栏
    listener: "editor/listener", 	// 监听器模块
    schema: "editor/schema", 	// Schema模块
    publish: "editor/publish", 	// publish模块
    schema_render: "editor/schema_render", 	// schema渲染器
    action_executer: "editor/action_executer", 	// 行为执行器
    resource_tabs: 'editor/resource_tabs',
    open_domain: "editor/open_domain",
    resource_properties: "editor/resource_properties",
    econsole: 'editor/econsole', // 控制台组件



    //****************************组件级别  领域模型************************//
    domain_design: "domain/domain_design",
    domain_design_business: "domain/domain_design_business",
    domain_design_default: "domain/domain_design_default",
    domain_design_index: "domain/domain_design_index",
    domain_design_vo: "domain/domain_design_vo",
    brms_design: "brms/brms_design",
    fact_design: "brms/fact_design",
    object_design:"brms/object_design",


    

    //****************************组件级别  流程模型************************//
    workflow_design: "workflow/workflow_design",

    resource_api: "api/resource_api",
    open_domain: "editor/open_domain",
    resource_properties: "editor/resource_properties",

    gs_domain_basic_design: "gs_domain/gs_domain_basic_design",
    gs_domain_design: "gs_domain/gs_domain_design",

    //****************************组件级别  通用类************************//
	jqgrid: "jqgrid", 	// jq表格组件
    etree: "etree", 	// layui.etree 扩展树
	ztree: "ztree", 	// layui.ztree
	edropdown: "edropdown", 	// layui.edropdown 扩展下拉
	fast_config: "fast_config", 	// 配置
	yaml: "yaml", 	// 配置
    amis: "amis",
	tab:'tabs', // tabs视图
	utils:'utils',
	enav: "editor/enav",
    drag :'drag'
}).use(['layer', 'theme'], function () {
	layui.theme.changeTheme(window, false);
});